<div class="row">
    <?php foreach ($lessons as $lesson) { ?>
    <div class="col-md-4 lesson-block">
        <a class="center-block text-center">
            <?php echo $this->tag->image(array($lesson->img, 'class' => 'img-responsive lesson-img')); ?>
            <div><?php echo $lesson->name; ?></div>
        </a>
    </div>
    <?php } ?>
</div>